package com.baidu.file;

public class D06_RecurrenceDemo2 {
    public static void main(String[] args) {
        System.out.println(f(1));
    }

    public static Integer f(Integer n){
        if (n == 10){
            return 1;
        }else{
            return f(n + 1) * 2 + 2;
        }
    }
}
